package com.car.service.Impl;

import com.car.entity.Detailedlistofrentalcharges;
import com.car.mapper.DetailedlistofrentalchargesMapper;
import com.car.service.DetailedlistofrentalchargesService;
import com.car.vo.DetailedlistofrentalchargesVo;
import com.car.vo.orderVo;

import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
@Service
public class DetailedlistofrentalchargesServiceImpl implements DetailedlistofrentalchargesService {
	
	@Autowired
	DetailedlistofrentalchargesMapper detailedlistofrentalchargesMapper;

	@Override
	public int deleteByPrimaryKey(Integer rentalCostID) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int insert(Detailedlistofrentalcharges record) {
		// TODO Auto-generated method stub
		return detailedlistofrentalchargesMapper.insert(record);
	}

	@Override
	public DetailedlistofrentalchargesVo selectByPrimaryKey(String orderId) {
		// TODO Auto-generated method stub
		return detailedlistofrentalchargesMapper.selectByPrimaryKey(orderId);
	}

	@Override
	public List<Detailedlistofrentalcharges> selectAll() {
		// TODO Auto-generated method stub
		return null;
	}

	@Override
	public int updateByPrimaryKey(Detailedlistofrentalcharges record) {
		// TODO Auto-generated method stub
		return 0;
	}

	@Override
	public int addDetail(DetailedlistofrentalchargesVo detaillist) {
		// TODO Auto-generated method stub
		return detailedlistofrentalchargesMapper.addDetail(detaillist);
	}
	public int updTotalAndCouponUsageToOrderId(Integer total,
	    	Integer couponUsage,
    		String orderId) {
		// TODO Auto-generated method stub
		return detailedlistofrentalchargesMapper.updTotalAndCouponUsageToOrderId(total,couponUsage,orderId);
	}
}